package com.zb.admin.mapper;


import com.github.pagehelper.Page;
import com.zb.model.dto.admin.SensitiveDTO;
import com.zb.model.pojo.admin.AdSensitive;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdSensitiveMapper {
    Page<AdSensitive> pageList(SensitiveDTO dto);

    Integer save(AdSensitive adSensitive);

    Integer update(AdSensitive adSensitive);

    @Delete("delete from ad_sensitive where id = #{id}")
    Integer del(Integer id);

    @Select("select * from ad_sensitive where id = #{id}")
    AdSensitive getById(Integer id);
}
